﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
using System.Data.EntityClient;
using System.ComponentModel;
using System.Xml.Serialization;
using System.Runtime.Serialization;

namespace AudiPyme.DAL
{
    public partial class ObjetivosControl : EntityObject
    {
        public ObjetivosControl(int IdObjControl, String Codigo, String Nombre, int IdDominio)
            : base()
        {
            this.IdObjControl = IdObjControl;
            this.Codigo = Codigo;
            this.Nombre = Nombre;
            this.IdDominio = IdDominio;
        }
        public ObjetivosControl()
            : base()
        {
        }
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
                return false;
            ObjetivosControl controlEquals = (ObjetivosControl)obj;
            return IdObjControl == controlEquals.IdObjControl &&
                   Codigo == controlEquals.Codigo && Nombre == controlEquals.Nombre && IdDominio == controlEquals.IdDominio;
        }

    }
}
